//
//  UserModel.swift
//  KJLGT
//
//  Created by jenkin on 2019/8/14.
//  Copyright © 2019年 jenkin. All rights reserved.
//

import Foundation

struct UserModel:Codable {
    static var share:UserModel?
    var user_id:Int? = 0
    var user_token:String? = ""
    var bind_type:Int? = 0 //绑定类型[0-不需要绑定,1-绑定微信,2-绑定手机号] ,
    var user_type:Int? = 0 //用户类型[1-任务发布者,2-任务接收者] ,
    var nickname:String? = ""
    var avatar:Avatar? = Avatar()
    var sex:Int? = 1 //性别[1-男,2-女] ,
    var birthday:String? = ""
    var province:String? = ""
    var city:String? = ""
    var amount:Int? = 0 //金额
    var recharge:Int? = 0 //充值金额
    var income:Int? = 0 //收入金额
    var is_password:Int? = 0 //是否密码[0-否,1-是] ,
//    var phone:String? = ""
}

struct Avatar:Codable{
    
    var id:Int? = 0
    var type:String? = ""
    var size:Double? = 0.0
    var width:Double? = 0.0
    var height:Double? = 0.0
    var hash:String? = ""
    var url:String? = ""
    var create_time:String? = ""
}
